#include "object3d.h"
#include "sphere.h"

#ifndef BSPHERE_H
#define BSPHERE_H

class BoundingSphere : public Object3D
{
public:
	BoundingSphere(d_Vec3f center, float radius, Object3D *object, Material *mat);
	bool intersect(const Ray &r, Hit &h, float tmin);
	bool inside(d_Vec3f point) {return object->inside(point);}
protected:
	Sphere *sphere;
	Object3D *object;
	Material *mat;
	d_Vec3f center;
	float radius;
};

#endif
